<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>枣课网</title>
    <meta name="keywords" content="">
    <meta name="description" content="枣课网、枣课教育">
    <link rel="stylesheet" href="__STATIC__/bootstrap-5.1.3/css/bootstrap.css">
    <link rel="stylesheet" href="/static/css/qx_index.css">
    <!--<link rel="stylesheet" href="__STATIC__/css/qct-all.css">-->
    <script src="/static/js/jquery-1.11.3.min.js"></script>
</head>
<body>
{include file="index/header" /}
<div class="container" style="margin-top:20px;">
    <div class="row align-items-start justify-content-around">
        <!--left-->
        <div class="col-3 text-start py-2" style="background-color:#ffffff;">
            <ul class="nav flex-column">
                <li id="cate" class="nav-item border-1 py-2 text-center"><a href="{:url('/users/center', array('articleid'=>1))}" style="color:#333">已购课</a></li>
            </ul>
        </div>
        <!--right-->
        <div class="col-9 py-3" style="background-color:#fff;min-height:615px;border-left:10px solid #f5f6f7;">
        <!--已购课程-->
            {volist name="starer" id="res"}
            <div class="row justify-content-start mb-3">
                <div class="col-5"><img src="{$res['thumb']}" alt="" style="height: 220px;"></div>
                <div class="col-7">
                    <table class="table table-borderless mt-2 table-border">
                        <thead>
                        <tr style="font-size:14px;">
                            <th scope="col">课程：</th>
                            <th scope="col">{$res['title']}</th>
                        </tr>
                        </thead>
                        <tbody style="font-size:14px;">
                        <tr>
                            <th scope="row">讲师：</th>
                            <td>方老师</td>
                        </tr>
                        <tr>
                            <th scope="row">有效期：</th>
                            <td>{$res['timeks']}</td>
                        </tr>
                        <tr>
                            <th scope="row">进度：</th>
                            <td>
                                <div class="progress" style="height: 22px;">
                                    <div class="progress-bar bg-info" role="progressbar" style="width:{$res['bfb']};" aria-valuenow="{$res['bfbs']}" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><a href="{:url('/course/play',array('id'=>$res['product_id']))}" class="btn btn-primary">开始学习</a></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            {/volist}
        <!--已购课程-->
        </div>
    </div>
</div>
<input id="cateid" type="hidden" value="">
<!-- 右侧挂件 -->
{include file="index/right_service" /}
<!-- 底部版权 -->
{include file="index/footer" /}

<script>
    /**
     * 左侧点击设置背景色
     */
    $(function(){
        $("#cate"+$("#cateid").val()).addClass('bg-light');
    })
</script>
</body>
</html>
